package io.ken.im.common.domain.exception;

/**
 * @author: ken
 * @description: 即时通讯异常
 * @date 2023-12-22
 **/
public class IMException extends RuntimeException {

    private Integer code;

    public IMException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public IMException(String message) {
        super(message);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
